package com.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

@Repository("userDao1")
@Scope("singleton")
@Lazy(value = false)
public class UserDaoImpl implements UserDao{
//
//    @Value("曾文迪")
    private String username;
    @Value("曾文迪")
    public void Username(String username){
        this.username = username;
    }

    public void show() {
        System.out.println(username);
    }
}
